﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ProjectBase.Core;
using ProjectBase.Core.Web;
using ProjectBase.Mvc;

using Survey.Common;
using Survey.Entity.Services.HowTos;

namespace Survey.Filters.Restrictions
{
    [CLSCompliant(false)]
    public class SimpleEntityFilterHandler : FilterRestrictionHandler<SimpleEntityFilter>
    {
        protected override void Handle(SimpleEntityFilter filter)
        {
            if (filter.Description.IsEmpty() && SecurityManager.User.CurrentRole.IsEqual("Administrator"))
            {
                filter.Description = "*";
            }
        }
    }
}
